<?php
/*
Copyright 2008, Nathalia


Author:
Nathalia Sautchuk Patrício          (nathalia.sautchuk@gmail.com)

*/
class CongressoRecord extends TActiveRecord
{
    const TABLE='Congresso';
    public $CongressoID;
	public $DataInicio;
	public $DataTermino;
	public $DataSubmissaoInicio;
	public $DataSubmissaoTermino;
	public $Nome;
	public $Descricao;
	public $Local;
	public $AreaConhecimento;
	public $CpID;
 
    public static $RELATIONS=array
    (
        'anais'  => array(self::HAS_ONE, 'AnaisRecord', 'CongressoID'),
        'artigo' => array(self::HAS_MANY, 'ArtigoRecord', 'CongressoID'),
        'cp'     => array(self::BELONGS_TO, 'UserRecord', 'CpID'),
    );

    public static function finder($className=__CLASS__)
    {
        return parent::finder($className);
    }
}
?>
